package zjc.方法;

import java.util.Scanner;

public class 判度整数是奇数还是偶数 {
    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        //pan(8);
        System.out.println("输入一个整数");
        int a=sr.nextInt();
        pan(a);

    }
    public static void pan(int n){
        if(n%2==1){
            System.out.println("是奇数");
        }else{
            System.out.println("是偶数");
        }
    }
}
